<template>
	<view >
		<view class="page-container" v-for="(item,index) in list" :key="index">
			<uni-card :title="item.question" is-shadow>
				<text class="uni-body">{{item.answer}}</text>
			</uni-card>
		</view>
	</view>
</template>

<script>
	import { getQuestion } from '@/common/api.js'
	export default {
		data() {
			return {
				list:[]
			}
		},
		created() {
			this.queryQuestion()
		},
		methods: {
			async queryQuestion(){
				const res = await getQuestion();
				this.list = res.data
			}
		}
		
	}
</script>

<style lang="scss" scoped>
	
</style>